/**
 * 头部组件context将数据流向头部组件
 **/

import * as React from 'react';
import { HeaderAPI } from '@/components/GlobalHeader/type';

const draft: HeaderAPI.IDraftType = {
  positionList: [],
  allUserInfo: {},
  BasicLayoutProps: {},
  switchingPos: (res: any) => {},
  dispatch: () => {},
  setLayoutSettings: () => {},
  settings: {},
  permissions: {},
  baseLogin: {},
};

export const GlobalHeaderContext = React.createContext(draft);
